package com.yunqing.restkeeper.store.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName DishFlavor
 * @Description TODO
 * @author: puyunqing
 * @Date: 2025/7/23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name = "DishFlavor", description = "菜品及套餐分类")
@TableName(value = "t_dish_flavor", resultMap = "BaseResultMap")
public class DishFlavor implements Serializable {

    @Schema(name = "id", description = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(name = "dishId", description = "菜品id")
    @TableField(value = "dish_id")
    private String dishId;

    @Schema(name = "flavorName", description = "口味名")
    @TableField(value = "flavor_name")
    private String flavorName;

    @Schema(name = "flavorValue", description = "口味标签")
    @TableField(value = "flavor_value")
    private String flavorValue;

    @Schema(name = "shopId", description = "所属商户id")
    @TableField(value = "shop_id")
    protected String shopId;

    @Schema(name = "storeId", description = "门店id")
    protected String storeId;

    @Schema(name = "lastUpdateTime", description = "最后更新时间")
    @TableField(value = "last_update_time", fill = FieldFill.INSERT_UPDATE)
    protected LocalDateTime lastUpdateTime;
}
